//
//  PrefixHeader.h
//  pocketNews
//
//  Created by DS on 2018/10/26.
//  Copyright © 2018年 徐双. All rights reserved.
//

#ifndef PrefixHeader_h
#define PrefixHeader_h


#import "Config.h"
#import "AFAppDotNetAPIClient.h"
#import <MJRefresh/MJRefresh.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <Toast/UIView+Toast.h>
#import "MBProgressHUD.h"
#import "SDAutoLayout.h"
#import <Masonry/Masonry.h>
#import "TSRegularExpressionUtil.h"
#import "NSURL+SetURLStringWithAddressOffset.h"
#import "UIView+EXT.h"
#import "UserModel.h"
#import <SDWebImage/UIButton+WebCache.h>
#import "CLCustomButton.h"


#import "UIImage+CL.h"
#import "ClearCacheTool.h"


#import "UIButton+CL.h"
#import "UIImageView+CL.h"
#import "UILabel+CL.h"
#import "UITextField+CL.h"
#import "UIView+CL.h"


#define Device_Width  [[UIScreen mainScreen] bounds].size.width//获取屏幕宽高
#define Device_Height [[UIScreen mainScreen] bounds].size.height

#define NAVH (MAX(Device_Width, Device_Height)  == 812 ? 88 : 64)
#define TABBARH (MAX(Device_Width, Device_Height)  == 812 ? 83 : 49)

#define LXColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define LXRandomColor LXColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))


#define MAS_SHORTHAND_GLOBALS //使用全局宏定义(需要放在.pch文件中)，可以使equalTo- 等效于mas_equalTo
#define MAS_SHORTHAND //使用全局宏定义(需要放在.pch文件中), 可以在调用masonry方法的时候不使用mas_前缀


#if 1
#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else
#define NSLog(FORMAT, ...) nil
#endif


#endif /* PrefixHeader_h */
